Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adapt type of valid minmax #132

Merged
merged 4 commits into from
Sep 17, 2024

Conversation

uriii3
Copy link
Collaborator

@uriii3 uriii3 commented Sep 13, 2024

In Pull 127 we discovered that the values of valid_min and valid_max didn't have the same format as the variable, which isn't consistent with the CF convention.

I've created this changes to make sure that the types of the values are correct.

@uriii3 uriii3 changed the base branch from main to copernicusmarine-toolbox-v2 September 13, 2024 10:22
@uriii3 uriii3 mentioned this pull request Sep 13, 2024
@uriii3 uriii3 requested a review from renaudjester September 13, 2024 13:36
Comment on lines +452 to +455
if (
"valid_min" in dataset[variable].attrs
and "valid_max" in dataset[variable].attrs
):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better, no? @renaudjester

@uriii3 uriii3 merged commit 0e5a113 into copernicusmarine-toolbox-v2 Sep 17, 2024
2 checks passed
@uriii3 uriii3 deleted the type_of_valid_minmax branch September 17, 2024 07:48
@uriii3 uriii3 changed the title Adapt type of valid minmax fix: adapt type of valid minmax Sep 17, 2024
renaudjester pushed a commit that referenced this pull request Oct 28, 2024
Making sure the formats of the variables have the same accuracy (if float32, then float32, not float in general)
renaudjester pushed a commit that referenced this pull request Oct 28, 2024
Making sure the formats of the variables have the same accuracy (if float32, then float32, not float in general)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants